package cn.stylefeng.guns.modular.business.frequency.orderabnormal.service;

import cn.stylefeng.guns.core.pojo.page.PageResult;
import cn.stylefeng.guns.core.pojo.response.ResponseData;
import cn.stylefeng.guns.modular.business.frequency.orderabnormal.entity.OrderAbnormal;
import cn.stylefeng.guns.modular.business.frequency.orderabnormal.model.param.OrderAbnormalDTO;
import cn.stylefeng.guns.modular.business.frequency.orderabnormal.model.param.OrderAbnormalParam;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 订单异常表 服务类
 *
 * @author yujie
 * @date 2023/05/09 17:17
 */
public interface OrderAbnormalService extends IService<OrderAbnormal> {

    /**
     * 分页查询订单异常表
     *
     * @author yujie
     * @date 2023/05/09 17:17
     */
    PageResult<OrderAbnormal> page(OrderAbnormalParam orderAbnormalParam);

    /**
     * 查询所有订单异常表
     *
     * @author yujie
     * @date 2023/05/09 17:17
     */
    List<OrderAbnormal> list(OrderAbnormalParam orderAbnormalParam);

    /**
     * 添加订单异常表
     *
     * @author yujie
     * @date 2023/05/09 17:17
     */
    void add(OrderAbnormalParam orderAbnormalParam);

    /**
     * 删除订单异常表
     *
     * @author yujie
     * @date 2023/05/09 17:17
     */
    void delete(OrderAbnormalParam orderAbnormalParam);

    /**
     * 编辑订单异常表
     *
     * @author yujie
     * @date 2023/05/09 17:17
     */
    void edit(OrderAbnormalParam orderAbnormalParam);

    /**
     * 查看详情订单异常表
     *
     * @author yujie
     * @date 2023/05/09 17:17
     */
    OrderAbnormal detail(OrderAbnormalParam orderAbnormalParam);

    /**
     * 修改状态（字典 0正常 1停用 2删除）
     *
     * @author yujie
     * @date 2023/05/09 17:17
     */
    void changeStatus(OrderAbnormalParam orderAbnormalParam);

    /** 异常订单待处理列表 */
    ResponseData getWaitList(OrderAbnormalDTO orderAbnormalDTO);

    ResponseData getRelieveListPage(OrderAbnormalDTO orderAbnormalDTO);

    void updatePunishStatus(String id);

    /** 异常解除 */
    void relieve(String id);

}